//
//  HNRelativeCell.m
//  XDEducation
//
//  Created by 星道 on 17/5/23.
//  Copyright © 2017年 apple. All rights reserved.
//

#import "HNRelativeCell.h"

@implementation HNRelativeCell
{
    IBOutlet UILabel *_Phone;
    IBOutlet UILabel *_Name;
    IBOutlet UILabel *_Grade;
}

- (void)setModel:(HNRelativeModel *)Model
{
    _Model = Model;
    _Phone.text = Model.phone;
    _Name.text = Model.nickname;
    _Grade.text = [self Gradeid:Model.gradeid];
}

- (NSString *)Gradeid:(NSNumber *)Index
{
    switch ([Index integerValue])
    {
        case 1:return @"一年级";break;
        case 2:return @"二年级";break;
        case 3:return @"三年级";break;
        case 4:return @"四年级";break;
        case 5:return @"五年级";break;
        case 6:return @"六年级";break;
        default:return @"";break;
    }
}
@end
